import { createRouter, createWebHistory } from "vue-router";


const routes = [
  {
    path: "/",
    component: () => import('../pages/index.vue'),
    children: [
      {
        path: '/dialogTest',
        component: () => import('../pages/DialogTest/index.vue')
      },
      {
        path: '/tableTest',
        component: () => import('../pages/TableTest/index.vue')
      },
      {
        path: '/buttonTest',
        component: () => import('../components/button/ButtonTest.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router;